//
//  UIImagePickerController+Extension.swift
//  HinsLive
//
//  Created by haoxian on 2019/5/4.
//  Copyright © 2019 Hins. All rights reserved.
//

import UIKit
import RxSwift


extension UIImagePickerController {
    static func defaultCreate(_ parent: UIViewController) -> () -> Observable<UIImagePickerController> {
        let o = UIImagePickerController.rx.create(parent) { (imagePicker) in
            imagePicker.sourceType = .photoLibrary
        }
        return { o }
    }
}
